@extends('admin.layout.main')
@section("content")
<style>
    .vintage {
        color: transparent;
        background-color: black;
        text-shadow: rgba(255, 255, 255, 0.5) 0 5px 6px, rgba(255, 255, 255, 0.2) 1px 3px 3px;
        -webkit-background-clip: text;
    }
    .content{
        padding-left:20px;
    }
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>客户详情</legend>
</fieldset>
<div class="content">
    <div class="layui-form-item" >
        @if($customer->customer_level==1)
            <label class="vintage">公司等级:&nbsp;&nbsp;&nbsp;一星级</label>
        @elseif($customer->customer_level==2)
            <label class="vintage">公司等级:&nbsp;&nbsp;&nbsp;二星级</label>
        @elseif($customer->customer_level==3)
            <label class="vintage">公司等级:&nbsp;&nbsp;&nbsp;三星级</label>
        @elseif($customer->customer_level==4)
            <label class="vintage">公司等级:&nbsp;&nbsp;&nbsp;四星级</label>
        @else($customer->customer_level==5)
            <label class="vintage">公司等级:&nbsp;&nbsp;&nbsp;五星级</label>
        @endif
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >公司类别:&nbsp;&nbsp;&nbsp;{{$customer->customer_type}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >公司状态:&nbsp;&nbsp;&nbsp;{{$customer->customer_status}}</label>
    </div>
    <div class="layui-form-item">
    <label class="vintage"  >公司规模:&nbsp;&nbsp;&nbsp;{{$customer->company_size}}</label>
    </div>
        <div class="layui-form-item">
    <label class="vintage"  >公司地址:&nbsp;&nbsp;&nbsp;{{$customer->company_address}}</label>
        </div>
            <div class="layui-form-item">
    <label class="vintage"  >联系周期:&nbsp;&nbsp;&nbsp;{{$customer->customer_cycle}}</label>
            </div>
                <div class="layui-form-item">
    <label class="vintage"  >下一联系时间:&nbsp;&nbsp;&nbsp;{{$customer->next_contact}}</label>
                </div>
                    <div class="layui-form-item">
    <label class="vintage"  >联系状态:&nbsp;&nbsp;&nbsp;{{$customer->customer_status}}</label>
                    </div>
    <div class="layui-form-item">
        <label class="vintage"  >联系人信息:&nbsp;&nbsp;&nbsp;<a href="/admin/user/{{$customer->contact_id}}/setting">{{$customer->contact_id}}</a></label>
    </div>
    <div class="layui-form-item">
        <label class="vintage"  >处理人ID:&nbsp;&nbsp;&nbsp;<a href="/admin/user/{{$customer->user_id}}/setting">{{$customer->user_id}}</a></label>
    </div>
    <div class="layui-form-item">
        <label class="vintage"  >创建时间:&nbsp;&nbsp;&nbsp;{{$customer->created_at}}</label>
    </div>
</div>
<button class="layui-btn" id="update">进入修改页面</button>
<button class="layui-btn" id="back">返回</button>
    <script>
        $('#update').on('click', function(){
            window.location.href="/admin/customer/{{$customer->id}}/edit"
        });
        $('#back').on('click', function(){
            history.back();
        });
    </script>
@endsection
